import request from '@/utils/request'

// 查询领料出库管理列表
export function listPickingOutbound(query) {
  return request({
    url: '/OutboundManagement/pickingOutbound/list',
    method: 'get',
    params: query
  })
}
// export function listOutbound(query) {
//   return request({
//     url: '/OutboundManagement/deliveryOperation/list',
//     method: 'get',
//     params: query
//   })
// }
export function listOutbound(query) {
  return request({
    url: 'OutboundManagement/deliveryOperation/findByZhijianList',
    method: 'get',
    params: query
  })
}
// 查询领料出库管理详细
export function getPickingOutbound(pickingId) {
  return request({
    url: '/OutboundManagement/pickingOutbound/' + pickingId,
    method: 'get'
  })
}

// 新增领料出库管理
export function addPickingOutbound(data) {
  return request({
    url: '/OutboundManagement/pickingOutbound',
    method: 'post',
    data: data
  })
}

// 修改领料出库管理
export function updatePickingOutbound(data) {
  return request({
    url: '/OutboundManagement/deliveryOperation//Chu',
    method: 'put',
    data: data
  })
}
///OutboundManagement/deliveryOperation/ChuKu

// 删除领料出库管理
export function delPickingOutbound(pickingId) {
  return request({
    url: '/OutboundManagement/pickingOutbound/' + pickingId,
    method: 'delete'
  })
}
